package cart.service;

import cart.service.impl.GoodsServiceFeignClientFallback;
import common.model.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(name = "goods-server",fallback = GoodsServiceFeignClientFallback.class)
public interface GoodsServiceFeignClient {
    @GetMapping("/goods/sku/{id}")
    Result getGoodsDetail(@PathVariable("id") Long id);
    @GetMapping("/goods/spu/{id}")
    Result getSpuVo(@PathVariable("id") Long id);
    @GetMapping("/goods/sku/{id}")
    Result getSkuDTO(@PathVariable("id") Long id);
}
